<template>
  <div>
    <h1> Github Who To Follow</h1>
    <button v-stream:click="refresh$">Click to refresh</button>
    <pre>{{ responseStream$ }}</pre>s
  </div>
</template>

<script>
/* eslint-disable */
import { Observable } from 'rxjs'

export default {
  domStreams: ["refresh$"],
  subscriptions() {
    const requestStream$ = Observable.ajax('https://api.github.com/users')

    const responseStream$ = requestStream$.pluck("response")
    const refreshStream$ = Observable.fromEvent(this.refresh$, 'click')

    
    return {
      responseStream$,
      refreshStream$
    }
  }
}
</script>

<style>

</style>
